package com.biz.primus.model.oms.vo;

import com.biz.primus.model.oms.enums.OrderTimeoutCause;
import com.biz.primus.model.oms.enums.TimeoutHandleState;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author yanweijin
 * @date 2017/11/24
 */
@Data
public class OmsTimeoutRecordVo {

	@ApiModelProperty("本条记录的id, 转换成字符串")
	private String recordIdString;

	@ApiModelProperty("订单编号")
	private String orderCode;

	@ApiModelProperty("订单id, 内部使用")
	private Long orderId;

	@ApiModelProperty("处理状态")
	private TimeoutHandleState state;

	@ApiModelProperty("超时原因")
	private OrderTimeoutCause timeoutCause;

	@ApiModelProperty("处理结果")
	private String handleResult;

	@ApiModelProperty("期望的时间(超过了这个时间,所以超时了)")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime expectedTime;

	@ApiModelProperty("处理人")
	private String handler;

	@ApiModelProperty("处理时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime handleTime;


}
